\fc0 I have created a Custom Palette. I want to do some additional initialization in my Palette, once the user has dragged it into one of the application's windows, or just before they run the IB Test Interface Mode. Which method does IB call to communicate with my Palette?\
\i \
\i0 A: When you drag an object off the Palette, a
\b read:
\b0 and an
\b awake:
\b0 message are sent after the first
\b write:
\b0 message. Subsequent dragging of the same object will generate only a
\b read:
\b0 and an
\b awake:
\b0 message. However, each time you go into the IB Test Interface mode, new instances of each palette object are created so each of those real instances are sent a
\b write:
\b0 message, then a
\b read:
\b0 and an
\b awake:
\b0 message.\
This is because IB treats objects differently when they are in "build" mode vs. "test" mode.\
Note also that during the archiving process,
\b write:
\b0 methods may be performed twice, so they shouldn't do anything other than write instance variables to a typed stream.\